speak too soon
Assume something prematurely, as in
I guess I spoke too soon about moving to Boston; I didn't get the job after all
.